﻿using System.Data;

namespace Sucdri.Infrastructure.Core.Extensions
{
   public static class DataReaderExtension
   {
      public static T Retrieve<T>(this IDataReader dataReader, string fieldName)
      {
         return (T)dataReader[fieldName];
      }

      public static T GetData<T>(this IDataReader dataReader, string fieldName)
      {
         return (T)dataReader[fieldName];
      }
   }
}